package sunwin.yoms.dao;

import org.apache.ibatis.annotations.Param;
import sunwin.yoms.comm.model.DateTimeSpan;
import sunwin.yoms.domain.resource.SubscribeOrderDomain;

import java.util.List;

/**
 * Created by mt on 2015-9-18.
 */
public interface SubscribeOrderDao extends DaoBase<SubscribeOrderDomain> {
    /**
     * 根据用户ID查找用户所预约的场馆
     * @param domain 查询条件
     * @param dateTimeSpan 时间段
     * @return
     */
    List<SubscribeOrderDomain> getSubscribeStadiumsByUid(@Param("domain") SubscribeOrderDomain domain,
                                                         @Param("dateTimeSpan") DateTimeSpan dateTimeSpan);

    /**
     * 根据基础条件和时间段查找用户预约的订单
     * @param domain 查询条件
     * @param dateTimeSpan 时间段
     * @return
     */
    List<SubscribeOrderDomain> getSubscribeDateByUidWithSid(@Param("domain") SubscribeOrderDomain domain,
                                                            @Param("dateTimeSpan") DateTimeSpan dateTimeSpan);
}
